package com.itheima.info.manager.dao;

import com.itheima.info.manager.domain.Student;

import java.util.ArrayList;

public abstract class BaseStudentDao {
    static ArrayList<Student> students = new ArrayList<>();

    static {
        students.add(new Student("s001", "张三", "23", "山西"));
        students.add(new Student("s002", "赵四", "24", "东北"));
        students.add(new Student("s003", "王五", "88", "北京"));
    }

    public abstract boolean addStudent(Student student);

    public abstract Student[] findAllStudent();

    public abstract void deleteStudentById(String deleteId);

    public abstract int getIndex(String id);

    public abstract void updateStudent(String updateId, Student newStudent);
}
